#include <QObject>
#include <QString>
#include <QWidget>

class MyForm;

/**
 * @brief command
 *
 */
class MyLoadDialogCmd : public QObject {
    Q_OBJECT;

public:
    MyLoadDialogCmd(QObject* parent = nullptr);
    virtual ~MyLoadDialogCmd();

    /**
     * @brief initial dialog
     *
     * @return QWidget*
     */
    QWidget* initialDialog();
signals:

    /**
     * @brief resize signal
     *
     * @param x x coordinate
     * @param y y coordinate
     * @param w width
     * @param h height
     */
    void onRectSizeChange(int x, int y, int w, int h);

public slots:

    /**
     * @brief treat for size change
     *
     * @param x x coordinate
     * @param y y coordinate
     * @param w width
     * @param h height
     */
    void afterRectSizeChange(int x, int y, int w, int h);

private:
    /**
     * @brief my form
     *
     */
    MyForm* m_pMyForm;
};
